﻿<%@ Page Title="" Language="C#" MasterPageFile="~/template/Justin/Master/Site.Master"
    AutoEventWireup="true" CodeBehind="ProductCategory.aspx.cs" Inherits="LinkCard.CustomerView.ProductCategory" %>
    <%@ Register TagPrefix="toplink" TagName="Slide" Src="~/Controls/Random5Deals.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ctph" runat="server">
    <ul class="sub-menu">
        <li><a href="/Default.aspx">Trang chủ &gt;</a></li>
        <li><span>Sản phẩm</span></li>
    </ul>
    <div class="partner-top">
        <toplink:Slide runat="server" ID="slide" />
    </div>
    <div class="product-cat">
        <h2>
            <asp:Literal runat="server" ID="catname"></asp:Literal></h2>
        <asp:Repeater runat="server" ID="rpcatproduct">
            <HeaderTemplate>
                <ul>
            </HeaderTemplate>
            <ItemTemplate>
                <li><a href='<%#LinkCard.Utils.Utilities.GetProductDetailUrl(Eval("DealID"),Eval("Name"),Eval("ParentCategoryId"))%>'>
                    <div class="product-cat-item">
                        <img style="max-height:160px;" src='<%#LinkCard.Utils.Utilities.GetProductImage(Eval("Image"))%>'
                            alt="" />
                    </div>
                </a><a href='<%#LinkCard.Utils.Utilities.GetProductDetailUrl(Eval("DealID"),Eval("Name"),Eval("ParentCategoryId"))%>'>
                    <h3>
                        <%#HttpUtility.HtmlDecode(Eval("Name").ToString()) %></h3>
                </a>
                    <p>
                        <%#Eval("Description") %>
                        <a href='<%#LinkCard.Utils.Utilities.GetProductDetailUrl(Eval("DealID"),Eval("Name"),Eval("ParentCategoryId"))%>'>
                            (xem thêm)</a>
                    </p>
                </li>
            </ItemTemplate>
            <FooterTemplate>
                </ul>
            </FooterTemplate>
        </asp:Repeater>
        <asp:Literal ID="ltrPaging" runat="server"></asp:Literal>
        <%--<div class="paging">
            <span id="ctl00_ctph_dtPgArticle"><a href="#?Page=1">1</a>&nbsp;<span>2</span>&nbsp;<a
                href="#?Page=3">3</a>&nbsp;<a href="#?Page=4">4</a>&nbsp;<a href="#?Page=5">5</a>&nbsp;&nbsp;<a
                    href="#?Page=6">...</a>&nbsp;</span>
        </div>--%>
    </div>
    <script language="javascript" type="text/javascript">
        $(document).ready(function () {
            $('#slider2').anythingSlider({
                width: 729,       // if resizeContent is false, this is the default width if panel size is not defined
                height: 274,       // if resizeContent is false, this is the default height if panel size is not defined
                resizeContents: false,     // If true, solitary images/objects in the panel will expand to fit the viewport
                pauseOnHover: true,
                delay: 3000,
                startStopped: false,
                autoPlay: true     // This turns off the entire slideshow FUNCTIONALY, not just if it starts running or not
                //navigationFormatter: formatText // Format navigation labels with text
            });
            $('.anythingSlider span.arrow').hide();
            $(".thumbNav li a").html("");
        });        
    </script>
</asp:Content>
